<?php
/*
 * 手机客户端帐户-我的店铺-商品添加评论接口
 * 2014-03-13
 * 2014-05-07 (已查)
 */
include "inc/public_header.php";

include "func/user.php";				//用户信息处理函数


$reJson = array(); //构建返回值

$orderId 		= $_REQUEST["orderId"];		
$goodsId 		= $_REQUEST["goodsId"];	
$comment 		= $_REQUEST["comment"];	

//获取用户信息
$uInfoArr = user_getInfoFromUUID();
if(!$uInfoArr){
	echo json_encode(array("success"=>"0","errCode"=>"0","msg"=>"没有获取到用户信息"));
	die;
}
$uid = $uInfoArr["uid"];//用户信息主键

$sql = "insert into shop_product_assess (msg,product_id,order_id,uid,addtime) values('".$comment."','".$goodsId."','".$orderId."','".$uid."',now())";
$db->query($sql);
$reJson["success"] = "1";
echo json_encode($reJson);
	
?>
